import React from 'react';
import { Router, Route, hashHistory } from 'react-router';

import Book from '../pages/book';
import home from '../pages/home';

import Layout from '../pages/layout';

const RouteConfig = (
    <Layout >
        <Router history={hashHistory}>
            <Route path='/' component={home}></Route>
            <Route path='/home' component={home}></Route>
            <Route path='/code/:id' component={Book}></Route>
        </Router>
    </Layout>
);

export default RouteConfig;

